home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / dcom / modems-part1 / 2258 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  3.5 KB

  1. Path: news.computek.net!news
  2. From: fulton@computek.net (Wayne Fulton)
  3. Newsgroups: comp.dcom.modems
  4. Subject: Re: Astounding high CPS rate!
  5. Date: 21 Jan 1996 19:28:54 GMT
  6. Organization: none
  7. Message-ID: <4du45m$16s@news.computek.net>
  8. References: <4db4ra$56@hg.oro.net> <821827949snz@genesis.demon.co.uk> <4djh7h$69j@mujibur.inmind.com> <DLHL58.9Dq@indep1.chi.il.us>
  9. NNTP-Posting-Host: dal1590.computek.net
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. In article <DLHL58.9Dq@indep1.chi.il.us>, clifto@indep1.chi.il.us 
  15. says...
  16. >Some time ago I read somewhere that there was supposed to be a "guard
  17. >time" of two bit times between the stop bit of one character and the
  18. >start bit of the next. This would suggest that one would have to
  19. >divide by 12 (8+1+1+2). However, real-world performance doesn't
  20. >suggest anything like this. Anyone ever hear of this "guard time"?
  21.  
  22.  
  23. Guard time is the name for the patented Hayes one second safety delay 
  24. required both before and after the +++ escape sequence to switch the 
  25. modem from online to command mode, so we can send ATH0 for example.  
  26. This is all programmable in S registers, but it has nothing to do with 
  27. data rates.
  28.  
  29. There is no delay necessary between a stop bit and the next start bit. 
  30. The stop and start bits themselves validate the character sync, that 
  31. is their purpose.
  32.  
  33. Stop bits used to be two bit times way back in the WWII TTY days, but 
  34. anything we've used in over 20 years uses a 1.0 bit stop bit length, 
  35. same length as all the other bits.   
  36.  
  37. Even so, 10 bit data (with start and stop bits) is only used in the 
  38. asynchronous modem cable between serial port and modem port, and 10 
  39. bits is also sent by plain-jane modems without error control (the old 
  40. or cheap ones).   But modern V.42 modems discard start and stop bits, 
  41. pack all data bytes into 128 or 256 byte blocks, number the blocks for 
  42. reference, and append computed CRC bytes.  They have no use for 
  43. start/stop bits nowdays, the V.42 modem to modem link is synchronous, 
  44. not asycnchronous.   Start/stop bits still exist because that is the 
  45. way our serial ports are designed.
  46.  
  47. So the theretical maximum possible data rate of a 14400 bps V.42 modem 
  48. is 14400/8=1800 CPS, but which must include the added V.42 overhead 
  49. bytes.  That is the definition of a 14400 bps modem, more is not 
  50. possible.   However V.42 is 20% faster than non-error control modems 
  51. because it sends 20% fewer bits per byte (8 vs 10).    We usually use 
  52. a protocol like Zmodem or tcp/ip that adds additional similar overhead 
  53. bytes, so when counting the original file data, we typically see 
  54. between 1620 and 1670 CPS on 14400 Zmodem from a fast host, mostly 
  55. depending on if the two modems negotiate 128 or 256 byte blocks.
  56.  
  57. The serial port still sends 10  bit characters, so even if we were 
  58. offered a 14400 baudrate, the port could go only 14400/10=1440 CPS 
  59. throughput, and so could not keep up with the 1800 CPS 14400 bps 
  60. modem.  So therefore, we set the port baudrate to 19200 baud (or 
  61. more), so the port can keep up with the modem.  
  62.  
  63. V.42bis compresses the data (if the data is compressible) and 
  64. depending on the compressibility of the specific data, we might see 2 
  65. or 3 times faster throughput at the serial port if we set the port 
  66. fast enough.  Typically we set the port 4 times faster than the 
  67. carrier so we are ready for anything.  However, the 14400 bps modem 
  68. still goes only 14400 bps, in that compression only changes the data 
  69. (fewer bytes).   The throughput definitely is faster, but only because 
  70. the data is smaller.  
  71.  
  72. -- 
  73. Wayne
  74. fulton@computek.net
  75.  
  76.